﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Model;

namespace BLL
{
   public partial class cardTemplatesManager
    {
       //获取模板名
       public IQueryable<string> Get_Name()
       {
           return db.GetAll().Select(p => p.name);
       }
      //根据模板名获取模板内容
       public cardTemplates getByTepName(string name)
       {
           return db.GetAll().Where(p => p.name == name).FirstOrDefault();
       }
       
    }
}
